added SSCLI 1.0
[windows-sources.git] / shared source / sscli20 / tools / nmake / verstamp.h
blob371a6e2c58f22c4e8f6830dabb091982f098eb2f
1 // ==++==
2 //
3 //
4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
5 //
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
10 //
11 // You must not remove this notice, or any other, from this software.
12 //
14 // ==--==
15 #include "version.h" // maintained version file
17 #if defined(_WIN32) || defined(WIN32)
18 #include <winver.h>
19 #elif PLATFORM_UNIX
20 // Don't do anything
21 #else /* !WIN32 */
22 #include <ver.h>
23 #endif /* !WIN32 */
25 #if (rmm < 10)
26 #define rmmpad "0"
27 #else
28 #define rmmpad
29 #endif
31 #if (rup == 0)
33 #define VERSION_STR1(a,b,c) #a "." rmmpad #b
35 #else /* !(rup == 0) */
37 #define VERSION_STR1(a,b,c) #a "." rmmpad #b "." ruppad #c
39 #if (rup < 10)
40 #define ruppad "000"
41 #elif (rup < 100)
42 #define ruppad "00"
43 #elif (rup < 1000)
44 #define ruppad "0"
45 #else
46 #define ruppad
47 #endif
49 #endif /* !(rup == 0) */
51 #define VERSION_STR2(a,b,c) VERSION_STR1(a,b,c)
52 #define VER_PRODUCTVERSION_STR VERSION_STR2(rmj,rmm,rup)
53 #define VER_PRODUCTVERSION rmj,rmm,0,rup
55 /*--------------------------------------------------------------*/
56 /* the following section defines values used in the version */
57 /* data structure for all files, and which do not change. */
58 /*--------------------------------------------------------------*/
60 #if defined(_SHIP)
61 #define VER_DEBUG 0
62 #else
63 #define VER_DEBUG VS_FF_DEBUG
64 #endif
66 #if defined(_SHIP)
67 #define VER_PRIVATEBUILD 0
68 #else
69 #define VER_PRIVATEBUILD VS_FF_PRIVATEBUILD
70 #endif
72 #if defined(_SHIP)
73 #define VER_PRERELEASE 0
74 #else
75 #define VER_PRERELEASE VS_FF_PRERELEASE
76 #endif
78 #define VER_FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
79 #if defined(_WIN32) || defined(WIN32)
80 #define VER_FILEOS VOS__WINDOWS32
81 #else
82 #define VER_FILEOS VOS_DOS_WINDOWS16
83 #endif
84 #define VER_FILEFLAGS (VER_PRIVATEBUILD|VER_PRERELEASE|VER_DEBUG)
86 #define VER_COMPANYNAME_STR "Microsoft Corporation"
87 #define VER_PRODUCTNAME_STR "Microsoft (R) Developer Studio"